package Master.interfaces;

import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Toolkit;

import javax.swing.JButton;
import javax.swing.JDialog;

import Master.Configurations;

public abstract class DetailDialog extends JDialog{
	
	public DetailDialog(String title)
	{
		super();
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		setResizable(false);
        setTitle(title);
	}
	
	public void appear()
	{
		//Center frame
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		this.setLocation((screenSize.width/2)-(this.getWidth()/2),
					(screenSize.height/2)-(this.getHeight()/2));
		this.show();
	}
}
